﻿<?php
	require_once 'EmpModel.class.php';
	require_once 'libs/Smarty.class.php';
	$adminid=$_POST['adminid'];
	$passwd=$_POST['passwd'];
	echo $adminid;
	if($adminid=="110" &&$passwd=="123")
	{
		$empModel=new EmpModel();
		$res=$empModel->showEmpList();
		//print_r($res);
		$smarty=new Smarty;
		$smarty->assign("hsp",$res);
		$smarty->display('empList.tpl');
	}
	else 
	{
		header("Location: login.php");
	}
?>